# -*- coding: utf-8 -*-
import platform
import os

def kill_pid(pid):
    if 'win' in platform.system().lower():
        os.system('taskkill /pid {} -t -f'.format(pid))
    else:
        os.killpg(os.getpgid(pid), 9)
        pass

def kill_process(process):
    if 'win' in platform.system().lower():
        os.system('taskkill /f /t /im {}'.format(process))
    else:
        #fixme
        pass